<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta name="robots" content="noindex,nofollow">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no"/>
    <title>安全提示</title>

    <style>
        html,body {width:100%;height:100%;margin:0;padding:0;background:#eee;}
        body {display:flex;align-items:center;justify-content: center;min-height:400px;user-select: none;}
        .content{width:320px;position:relative;overflow:hidden;border:1px solid #ccc;background:#fff;text-align:center;}
        .safe_title{position:absolute;top:20px;left:10px;text-align:left;}
        .safe_title div{font-size:22px;color:#ff0c0c; margin:0 0 10px 0;}
        .safe_title span{font-size:16px;color:#333;}
        .effect_car{width:320px;}
        .point_pic{width: 340px;height: 75px;position: absolute;bottom: 90px;left: -20px;}
        .brake_pic{width:60px;cursor:pointer;padding:15px;}
    </style>
</head>
<?php
	if(!isset($_REQUEST['token']) || !$_REQUEST['token']){
		exit('Error：Access terminated');
	}
	$token = $_REQUEST['token'];
	$httpType = ((isset($_SERVER['HTTPS']) && $_SERVER['HTTPS'] == 'on') || (isset($_SERVER['HTTP_X_FORWARDED_PROTO']) && $_SERVER['HTTP_X_FORWARDED_PROTO'] == 'https')) ? 'https://' : 'http://';
	$goToUrl = isset($_REQUEST['url']) ? $_REQUEST['url'] : $httpType.$_SERVER['HTTP_HOST'];
	$goToUrl = urlencode($goToUrl);
?>
<body>

<div class="content">
	<div class="safe_title"><div>大佬！</div><span>你的阅读速度太快，本站限速，请刹车！</span></div>
	<img class="effect_car" src="">
	<img class="point_pic" src="images/dow.gif">
	<img class="brake_pic" id="brake_btn" src="images/brake.jpg">
</div>

<script type="text/javascript">
	var token = '<?php echo $token;?>';
	var goToUrl = '<?php echo $goToUrl;?>';
	var brake_btn = document.getElementById("brake_btn");
    brake_btn.onclick = function(){
        window.location.href = 'verify.php?token='+token+'&url='+goToUrl;
    };
</script>
</body>

</html>